#include"Udpserver.hpp"
#include"Comm.hpp"
#include<memory>

using namespace std;
int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        cout<<"Usage:\n     ./udp_echo_server <ip> <port>"<<endl;
        return -1;
    }

    string ip=argv[1];
    uint16_t port=stoi(argv[2]);

    //unique_ptr<UdpServer> usvr=make_unique<UdpServer>();？？？
    UdpServer* usvr=new UdpServer("0.0.0.0",8888);
    usvr->Init();
    usvr->Start();
    return 0;
}